package com.wanmait.baohan.service.Impl;

import com.github.pagehelper.PageInfo;
import com.wanmait.baohan.mapper.ShareholderMapper;
import com.wanmait.baohan.pojo.Shareholder;
import com.wanmait.baohan.service.ShareHolderService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;
@Service
@Transactional(rollbackFor = Exception.class)
public class ShareHolderServiceImpl implements ShareHolderService {
    @Resource
    private ShareholderMapper shareholderMapper;
    @Override
    public void insert(Shareholder object) {
        shareholderMapper.insert(object);
    }

    @Override
    public void delete(Integer id) {

    }

    @Override
    public void delete(String ids) {

    }

    @Override
    public void update(Shareholder object) {

    }

    @Override
    public Shareholder findById(Integer id) {
        return null;
    }

    @Override
    public List<Shareholder> findAll() {
        return null;
    }

    @Override
    public List<Shareholder> findAll(Shareholder object) {
        return null;
    }

    @Override
    public PageInfo<Shareholder> findPage(int pageNum) {
        return null;
    }

    @Override
    public PageInfo<Shareholder> findPage() {
        return null;
    }

    @Override
    public PageInfo<Shareholder> findPage(int pageNum, Shareholder object) {
        return null;
    }

    @Override
    public PageInfo<Shareholder> findPage(Shareholder object) {
        return null;
    }

    @Override
    public List<Shareholder> findShareHolderById(Integer id) {
        return shareholderMapper.findById(id);
    }
}
